import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

const app = createApp(App)

app.use(router)
app.use(ElementPlus)

app.config.globalProperties.$filters = {
    formatDate(value) {
        if (value) {
            return new Date(value).toLocaleString()
        }
        return ''
    }
}

app.mount('#app')